//**********************************************************************************
//  PP3_6.java         Author:Tang Caiming
//
//  Enter a radius of the ball, then output the volume and surface area, 
//  and the result is 4 decimal places.
//**********************************************************************************

import java.util.Scanner;
import java.text.DecimalFormat;

public class PP3_6
{
   public static void main(String[] args)
   {
      int radius;
      double V, STSA; // 体积，表面积
      
      Scanner scan = new Scanner(System.in);
      
      System.out.println("Enter the radius of the ball: ");
      radius = scan.nextInt();

      STSA = 4 * Math.PI * Math.pow(radius, 2);
      V = (4 / 3) * Math.PI * Math.pow(radius, 3);

      DecimalFormat fmt = new DecimalFormat("0.####");
    
      System.out.println("The ball's V: " + fmt.format(V));
      System.out.println("The ball's STSA: " + fmt.format(STSA)); 
   }
}
